#!/bin/sh

if [ "${1}" = "" ]; then
    echo "install-deps.sh requires at least 1 argument"
    exit 1
fi

cd "${MESON_SOURCE_ROOT}" || exit 1

[ "${1}" = "debug" ] && BUILD_TYPE=Debug || BUILD_TYPE=Release 

conan install build/conan -if "${MESON_BUILD_ROOT}"/conan -pr:b=default -s build_type="${BUILD_TYPE}"
